#!/bin/bash

# ---------- ---------- ---------- ---------- ---------- ----------
#NOTE:  This will either run the plugin, or do the following:
#
#       Copy: 
#           - assets
#           - manifest
#           - java
#           - layouts
#           - menus
#       Remove default:
#           - layouts
# ---------- ---------- ---------- ---------- ---------- ----------

if [ -e plugins/wire-it-up.sh ] ; then
    plugins/wire-it-up.sh
else
    echo wire-it-up!
    cp -R ./content/assets ./output/hundreds/assets
    cp ./content/AndroidManifest.xml ./output/hundreds/AndroidManifest.xml
    cp ./content/java/HundredsSandbox.java ./output/hundreds/src/community/peers/hundreds/HundredsSandbox.java
    cp ./content/java/HundredsServer.java ./output/hundreds/src/community/peers/hundreds/HundredsServer.java
    cp ./content/java/MainActivity.java ./output/hundreds/src/community/peers/hundreds/MainActivity.java
    cp ./content/res/values/strings.xml ./output/hundreds/res/values/strings.xml
    cp ./content/res/layout/activity_main.xml ./output/hundreds/res/layout/activity_main.xml
    rm ./output/hundreds/res/layout/main.xml
    cp -R ./content/res/menu ./output/hundreds/res/menu
fi

